package com.hh.erp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hh.erp.entity.SysUser;
import com.hh.erp.entity.request.SysUserRequest;
import com.hh.erp.entity.vo.RouterVo;
import com.hh.erp.util.http.AjaxResult;
import com.hh.erp.util.page.PageInfo;

import java.util.List;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author zhb
 * @since 2024-03-30
 */
public interface SysUserService extends IService<SysUser> {

   public String login(String username, String password);
//
//   public AjaxResult getInfo(String token);

    public List<RouterVo> getRouters(String token);

    PageInfo selectPageUserList(SysUserRequest request);

    SysUser findUserById(Long id);

    Boolean edit(SysUserRequest request);

    Boolean add(SysUserRequest request);

    Boolean changeStatus(SysUserRequest request);

    Boolean deleteById(Long id);

    Boolean resetPwd(SysUserRequest request);
}
